/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import core.Comment;
import core.User;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author buben
 */
@Local
public interface IComment {
    
    public void createComment(Comment comment);

    void updateComment(Comment comment);

    void deleteComment(Comment comment);

    public Comment findComment(int commentId);

    public Comment findComment(String commentname);

    public List<Comment> findAllComments();
    
    public List<Comment> findAllCommentsFromUser(User id);
    
}
